home *** CD-ROM | disk | FTP | other *** search
- Path: hecate.umd.edu!ram
- From: ram@mbisgi.umd.edu (Ram Samudrala)
- Newsgroups: comp.infosystems.www.misc,comp.infosystems.www.authoring.cgi,comp.infosystems.www.servers.misc,comp.infosystems.www.servers.ms-windows,comp.infosystems.www.servers.unix,comp.infosystems.www.authoring.misc,comp.infosystems.www.servers.mac,comp.lang.perl.misc,comp.lang.c
- Subject: Re: Unix or NT? Get a Mac!
- Followup-To: comp.infosystems.www.misc,comp.lang.perl.misc,comp.lang.c
- Date: 4 Jan 1996 22:16:21 GMT
- Organization: The Centre for Advanced Research in Biotechnology
- Message-ID: <4chjjl$a5j@hecate.umd.edu>
- References: <480qej$3h3@sundog.tiac.net> <4cc63m$5gk@hecate.umd.edu> <4ccbg1$ilq@csnews.cs.colorado.edu> <4ch7c6$lrm@cheetah.pacinfo.com> <4chdjn$3mc@csnews.cs.colorado.edu>
- Reply-To: me@ram.org
- NNTP-Posting-Host: indigo3.carb.nist.gov
- X-Newsreader: TIN [version 1.2 PL0]
-
- Removing a bunch of groups I find unrelated to this in Followups, and adding comp.lang.c.
-
- Tom Christiansen (tchrist@mox.perl.com) wrote:
-
- > Automatic memory management -- no more malloc and free issues, no more
- > overrunning the end of an array or getting a bad pointer, no more line
- > too long problems or "please recompile with a larger X" problems etc.
- > This alone is usually sufficient justification for ditching C for a lot
- > of programs.
-
- Thanks for the list. This is partly an issue of whether you're a
- careful programmer or not. Perhaps it might take a few months of
- coding in C to get these aspects right, whereas it might never be a
- worry for Perl programmers. However, it is a function of the
- programmer rather than any innate feature of the languages. Normally,
- if you're coding well, these issues should never come up.
-
- > Dynamic typing system -- you don't have to worry about whether
- > something is a 2byte integer or an 8byte float or a constant 5byte
- > string with signed characters or a 20byte string of constant unsigned
- > characters.
-
- > Built-in security models -- the taint checking uses a dataflow analysis
- > to determine what's safe and what isn't that only a very clever global
- > register allocator and pointer tracker could do in C. This protects a
- > programmer from a nefarious interloper, or his own mistakes. And the
- > Safe module offers secure compartments for protected execution for when
- > you don't even trust the author of the code.
-
- > Rich standard library -- this offers convenient manipulation of high level
- > objects, including but not limited to strings, regular expressions,
- > numbers, arrays, hash tables (associative arrays), files, and sockets.
- > These objects have no built-in limits regarding their size or content.
-
- > Portability - perl emulates a standard environment even on alien or
- > otherwise bizarre systems where you would have to do things
- > differently. Perl programs written for Unix, MVS, VMS, Apples, MS-DOS,
- > NT, or AIX can often be ported between each other with a simple
- > copy command and no further munging. This you cannot do with C or
- > shell.
-
- This I think is the biggest advantage of Perl.
-
- > Both low level and high level usefulness - On one hand, you can write
- > simple, small little hello-world programs knowing nothing but a little
- > shell programming background that work the first time you type them in,
- > but on the other hand, you can write much larger pieces of code in a
- > robust and modular style with public and private parts, interfaces
- > versus implementations etc. Thus it is accessible and useful to
- > programmers at both ends of the expertise spectrum.
-
- >for the task when it gets in your way, bogging down your implementation
- >efforts with nitty gritty details.
-
- I guess I've never had this problem with the choices I make (usually
- C, perhaps a functional language, and sometimes FORTRAN).
-
- >I do not believe you can seriously suggest that C is more appropriate
- >for text processing purposes than Perl.
-
- It depends again---I did tell you to not waste your time implementing
- the stuff I sent you (which is largely text processing), but if you
- had done so, it'd have taken donkey's years to run with the kind of
- inputs I have (which can run into tens of thousands of lines).
-
- In any case, I'm beyond caring now. I guess ultimately we're going to
- use whatever we want and what we're comfortable with. I use Perl every
- so often (mainly for text-processing of small inputs), but that's the
- extent I'd use any interpreted language for.
-
- --Ram
-
- me@ram.org || http://www.ram.org || http://www.twisted-helices.com/th
- Person man, person man. Hit on the head with a frying pan.
- Lives his life in a garbage can. Person man,
- is depressed or is he a mess? Does he feel totally worthless?
- Who came up with person man? Degraded man, person man. ---TMBG
-